package org.dromara.system.domain.bo;

import com.baomidou.mybatisplus.annotation.TableId;
import org.dromara.system.domain.PayRate;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 汇率业务对象 pay_rate
 *
 * @author Gavino
 * @date 2024-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayRate.class, reverseConvertGenerate = false)
public class PayRateBo extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "rate_id")
    private Long rateId;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String value;

    private Integer sort;

}
